package com.lfsenior;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by dlupan on 2018/9/17
 */
@Path("/test")
@Produces(value = {MediaType.APPLICATION_JSON})
public class TestService {
    @GET
    @Path("/geta")
    public Map<String,Object> signApp(){
        Map param=new HashMap();
        param.put("test","test");
        int i=1/0;
        return param;
    }
}
